package vip.liux.contracts.shared.enums.product;

import vip.liux.core.enums.IEnum;

public enum DeductStockType implements IEnum {
    // 库存扣减方式 0-下单扣减 1-付款扣减
    ORDER(0, "下单扣减"),
    PAYMENT(1, "付款扣减");
    final int value;
    final String desc;

    DeductStockType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
